import request from '@/utils/request'

// 查询门窗用料计算结果列表
export function listResults(query) {
  return request({
    url: '/material-cutting-plan/results/list',
    method: 'get',
    params: query
  })
}

// 查询门窗用料计算结果详细
export function getResults(id) {
  return request({
    url: '/material-cutting-plan/results/' + id,
    method: 'get'
  })
}

// 新增门窗用料计算结果
export function addResults(data) {
  return request({
    url: '/material-cutting-plan/results',
    method: 'post',
    data: data
  })
}

// 修改门窗用料计算结果
export function updateResults(data) {
  return request({
    url: '/material-cutting-plan/results',
    method: 'put',
    data: data
  })
}

// 删除门窗用料计算结果
export function delResults(id) {
  return request({
    url: '/material-cutting-plan/results/' + id,
    method: 'delete'
  })
}
